load("@io_bazel_rules_go//go:def.bzl", "go_test")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
    name = "foo_proto",
    srcs = ["foo.proto"],
)

go_proto_library(
    name = "foo_go_proto",
    importmap = "never/gonna/give/you/up",
    importpath = "github.com/bazelbuild/rules_go/tests/core/go_proto_library_importmap",
    proto = ":foo_proto",
)

go_test(
    name = "importmap_test",
    srcs = ["importmap_test.go"],
    deps = [":foo_go_proto"],
)
